package com.david.vo;

import com.david.validator.IsMobile;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;


/**
 * @program: Secondskill-Demo
 * @description: 登录参数
 * @author: David
 * @version:
 * @create: 2022-04-11 23:33
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginVo {

    /**
     *   @NotNull 不为空
     *   @IsMobile 自定义手机号注解(必填项)
     */
    @NotNull
    @IsMobile
    private String mobile;

    @NotNull
    @Length(min = 32)
    private String password;
}
